<template>
  <div class="btn" @click="handleClick">{{msg}}</div>
</template>

<script>
export default {
  props: ["msg"],

  methods: {
    handleClick() {
      console.log("被点击了");
      this.$emit("submit");
    },
  },
};
</script>

<style lang="less" scoped>
.btn {
  background-color: #cc3300;
  height: 48/360 * 100vw;
  border-radius: 24/360 * 100vw;
  text-align: center;
  line-height: 48/360 * 100vw;
  color: #fff;
  font-size: 18px;
  margin-top: 48/360 * 100vw;
}
</style>